﻿using System;
using System.Collections.Generic;
using System.Text;

namespace EntityFrameworkCRUD.Core.BaseRepository
{
    public class BaseRepository<T, TKey> : IBaseRepository<T, TKey> where T : class
    {
        protected EntityFrameworkContext _context;
        public BaseRepository(EntityFrameworkContext context) {
            this._context = context;
        }
        public void Dispose()
        {
            if (_context != null)
            {
                _context.Dispose();
                _context = null;
            }
        }

        public T Get(TKey id)
        {
            throw new NotImplementedException();
        }
    }
}
